package com.bee.bootstrap.system.controller;

import com.bee.bootstrap.system.service.IInterfaceService;
import com.bee.common.core.result.Result;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/interfaces")
@Api(value = "/interfaces", description = "接口管理")
public class InterfaceController {

    @Autowired
    private IInterfaceService interfaceServiceImpl;

    @GetMapping("/resources/cascader")
    @ApiOperation(value="获取资源级联数据", notes="获取资源级联数据")
    public Result findResourcesCascader(){
        return interfaceServiceImpl.findResourcesCascader();
    }

}
